this.executeTasks(tasks);
// clean up and save
this.cleanupInstallableResources();
// if we don't have any tasks, we go to sleep
if (!tasksCreated) {
this.executeTasks(tasks);
// clean up and save
this.cleanupInstallableResources();
}
// if we don't have any tasks, we go to sleep